package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

public class PasswordModifyParam {
    private String sourcePassword;
    private String newPassword;

    public String getSourcePassword() {
        return sourcePassword;
    }

    public void setSourcePassword(String sourcePassword) {
        this.sourcePassword = sourcePassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PasswordModifyParam param = (PasswordModifyParam) o;
        return Objects.equals(sourcePassword, param.sourcePassword) && Objects.equals(newPassword, param.newPassword);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sourcePassword, newPassword);
    }
}
